import { i18nRender } from '../locales'
// 获取当前用户角色： this.$store.getters.userInfo.roleId
// 判断当前用户角色： if (this.$store.getters.userInfo.roleId == this.$const.ROLE_TYPE.CRC.value)
export const ROLE_TYPE = {
  ADMIN: {
    value: 'SYS_ADMIN',
    desc: i18nRender('all.autotext116')
  },
  PROJECT_ADMIN: {
    value: 'PROJECT_ADMIN',
    desc: i18nRender('all.autotext1253')
  },
  YW_ADMIN: {
    value: 'SYS_BIZ',
    desc: i18nRender('all.autotext926')
  },
  PM: {
    value: 'PM',
    desc: 'PM'
  },
  FINANCE: {
    value: 'SYS_FINANCE',
    desc: i18nRender('all.autotext448')
  },
  CRC: {
    value: 'CRC',
    desc: 'CRC'
  },
  PI: {
    value: 'Investigator',
    desc: 'PI'
  }
}

export default {
  ROLE_TYPE
}
